//
//  SYJiaoYanModel.m
//  SanYiTeaching
//
//  Created by 郑浩然 on 2019/4/29.
//  Copyright © 2019年 SanYi. All rights reserved.
//

#import "SYJiaoYanModel.h"


@implementation SYjiaoYanListModel

@end



@implementation SYJiaoYanModel


- (NSMutableArray *)monishuju {
    NSMutableArray *dataArr = [NSMutableArray array];
    
    for (NSInteger i = 0; i < 2; i ++) {
        SYJiaoYanModel *jyModel = [[SYJiaoYanModel alloc] init];
        
        if (i == 0) {
            NSMutableArray *listArr = [NSMutableArray array];
            for (NSInteger j = 0; j <15; j ++ ) {//未完成的，没有教研成果
                if (j == 8) {//教研记录
                    SYjiaoYanListModel *listModel = [[SYjiaoYanListModel alloc] init];
                    listModel.type = SYJiaoyanModelTypeJiaoYanJiLu;
                    [listArr addObject:listModel];
                } else if (j == 12 || j == 9) {//标题白色
                    SYjiaoYanListModel *listModel = [[SYjiaoYanListModel alloc] init];
                    listModel.type = SYJiaoyanModelTypejyTitle;
                    [listArr addObject:listModel];
                } else if (j == 14|| j == 13 || j == 11 || j == 10) {//内容数据
                    SYjiaoYanListModel *listModel = [[SYjiaoYanListModel alloc] init];
                    listModel.type = SYJiaoyanModelTypejyZi;
                    [listArr addObject:listModel];
                } else {//小组
                    SYjiaoYanListModel *listModel = [[SYjiaoYanListModel alloc] init];
                    listModel.type = SYJiaoyanModelTypeXiaoZu;
                    [listArr addObject:listModel];
                }
            }
            jyModel.dataArr = listArr;
        } else {
            NSMutableArray *listArr = [NSMutableArray array];
            for (NSInteger j = 0; j <15; j ++ ) {//未完成的，没有教研成果
                if (j == 11) {//教研成果
                    SYjiaoYanListModel *listModel = [[SYjiaoYanListModel alloc] init];
                    listModel.type = SYJiaoyanModelTypeJiaoYanChengGuo;
                    [listArr addObject:listModel];
                } else if (j == 12) {//教研成果得标题
                    SYjiaoYanListModel *listModel = [[SYjiaoYanListModel alloc] init];
                    listModel.type = SYJiaoyanModelTypecgTitle;
                    [listArr addObject:listModel];
                } else if (j == 14|| j == 13) {//教研成果得子cell
                    SYjiaoYanListModel *listModel = [[SYjiaoYanListModel alloc] init];
                    listModel.type = SYJiaoyanModelTypecgZi;
                    [listArr addObject:listModel];
                } else if (j == 10 || j == 9 || j == 7 || j == 6) {
                    SYjiaoYanListModel *listModel = [[SYjiaoYanListModel alloc] init];
                    listModel.type = SYJiaoyanModelTypejyZi;
                    [listArr addObject:listModel];
                } else if (j == 8 || j == 5) {
                    SYjiaoYanListModel *listModel = [[SYjiaoYanListModel alloc] init];
                    listModel.type = SYJiaoyanModelTypejyTitle;
                    [listArr addObject:listModel];
                } else if (j == 4) {//教研记录标题
                    SYjiaoYanListModel *listModel = [[SYjiaoYanListModel alloc] init];
                    listModel.type = SYJiaoyanModelTypeJiaoYanJiLu;
                    [listArr addObject:listModel];
                } else {//小组成员
                    SYjiaoYanListModel *listModel = [[SYjiaoYanListModel alloc] init];
                    listModel.type = SYJiaoyanModelTypeXiaoZu;
                    [listArr addObject:listModel];
                }
            }
            jyModel.dataArr = listArr;
        }
        
        [dataArr addObject:jyModel];
    }
    
    return dataArr;
}




@end














